package com.ecut.property_project.service;

import com.ecut.property_project.model.character.Role;
import com.ecut.property_project.model.character.User;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public interface UserService {

    public User findUserById(Integer id);

    public User findUserByWechat(String wechatId);


    public Map<String, String> getUser();

    public List<Role> getUserRolesById(Integer id);

    public User findUserByTel(String tel);
    //selectAll与findAllUser功能相同
    public List<User> selectAll();

    public List<User> selectByPage(Integer page, Integer pageSize);

    public List<User> findAllUser();

    public Boolean updateUser(User user);

    public Boolean updateUserImage(String imageUrl, int id);

    Boolean updateUserWx(String WeChatId, int id);
    Boolean updateUserEmail(String email, int id);
    Boolean updateUserTel(String tel, int id);

    public Boolean deleteUser(Integer id);

    public Boolean saveList(List<User> list);
}
